﻿<Serializable()> _
Public Class EseguimientoFin

#Region "           Atributos                       "
    Private _idEntidadFin As Int32
    Private _idSeguimiento As Int32
    Private _descSeguimiento As String
    Private _estado As String
    Private _descEstado As String
    Private _idUsuario As Int32
#End Region

#Region "           Propiedades                     "
    Public Property idEntidadFin() As Int32
        Get
            Return _idEntidadFin
        End Get
        Set(ByVal value As Int32)
            _idEntidadFin = value
        End Set
    End Property
    Public Property idSeguimiento() As Int32
        Get
            Return _idSeguimiento
        End Get
        Set(ByVal value As Int32)
            _idSeguimiento = value
        End Set
    End Property
    Public Property descSeguimiento() As String
        Get
            Return _descSeguimiento
        End Get
        Set(ByVal value As String)
            _descSeguimiento = value
        End Set
    End Property
    Public Property estado() As String
        Get
            Return _estado
        End Get
        Set(ByVal value As String)
            _estado = value
        End Set
    End Property
    Public Property descEstado() As String
        Get
            Return _descEstado
        End Get
        Set(ByVal value As String)
            _descEstado = value
        End Set
    End Property
    Public Property idUsuario() As Int32
        Get
            Return _idUsuario
        End Get
        Set(ByVal value As Int32)
            _idUsuario = value
        End Set
    End Property
#End Region

#Region "           Propiedades Avanzadas           "
    Public ReadOnly Property idEntidadFinIdSeguimiento() As String
        Get
            Return idEntidadFin.ToString & "," & idSeguimiento.ToString
        End Get
    End Property
#End Region

#Region "           Contructores                    "
    Public Sub New()

    End Sub
    Public Sub New(ByVal idSeguimiento As Int32, ByVal descSeguimiento As String)
        Me.idSeguimiento = idSeguimiento
        Me.descSeguimiento = descSeguimiento
    End Sub
    Public Sub New(ByVal idEntidadFin As Int32, ByVal idSeguimiento As Int32, _
                   ByVal descSeguimiento As String, ByVal estado As String, ByVal idUsuario As Integer)
        Me.idEntidadFin = idEntidadFin
        Me.idSeguimiento = idSeguimiento
        Me.descSeguimiento = descSeguimiento
        Me.estado = estado
        Me.descEstado = IIf(estado = 1, "HABILITADO", "DESHABILITADO")
        Me.idUsuario = idUsuario
    End Sub
#End Region

End Class
